MAKE=make
CC=gcc

XT_OPT_LEVEL= 
CFLAGS=-O3 $(XT_OPT_LEVEL)
#CFLAGS=-O0 $(XT_OPT_LEVEL)
LDFLAG= 

export CFLAGS

.PHONY: all
all:
	$(MAKE) -C crossbit
	$(MAKE) -C arch
	$(MAKE) -C prog

.PHONY: O1
O1: 
	$(MAKE) XT_OPT_LEVEL=-DOPT_LEVEL_1

.PHONY: clean
clean:
	$(MAKE) clean -C crossbit
	$(MAKE) clean -C arch
	$(MAKE) clean -C prog
